// const UglifyJsPlugin = require("uglifyjs-webpack-plugin");
module.exports = {
  publicPath: "/",
  runtimeCompiler: true,
  productionSourceMap: false,
  devServer: {
    https: false,
    proxy: {
      "/api": {
        target: process.env.VUE_APP_apiUrl, // 需要请求的地址
        changeOrigin: true, // 是否跨域
        ws: true,
        pathRewrite: {
          "^/api/": "/" // 替换target中的请求地址
        }
      }
    }
  }
};
